<div class="my-breadcrumb">

  <nz-breadcrumb [nzAutoGenerate]="true"
    *ngIf="breadType === 0 && breadcrumbData.length <= 0; else otherBreadcrumb"
  >
    <nz-breadcrumb-item>
      <a [routerLink]="['/home']">首页</a>
    </nz-breadcrumb-item>
  </nz-breadcrumb>


  <ng-template #otherBreadcrumb>
    <nz-breadcrumb>
      <nz-breadcrumb-item>
        <a [routerLink]="['/home']">首页</a>
      </nz-breadcrumb-item>
      <ng-container *ngFor="let item of breadcrumbData; let i = index">
        <nz-breadcrumb-item *ngIf="i < breadcrumbData.length - 1">
          <a [routerLink]="[item.router]">{{ item?.title }}</a>
        </nz-breadcrumb-item>
        <nz-breadcrumb-item *ngIf="i === breadcrumbData.length - 1">
          {{ item?.title }}
        </nz-breadcrumb-item>
      </ng-container>
      
    </nz-breadcrumb>
  </ng-template>

  
</div>
